<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="../taglibs.jsp" %>
<script type="text/javascript">
	$(function() {
		$("#query").click(function() {
			$("form:first").submit();
		});
	
		
		
	});
/**
 * 获得角色选择信息
 */
	 function gRole() {
		 var result="";
		$("tr input:checked").each(function() {
		  result=result+$(this).val()+",";
		});
		 return result;
	}
</script>
<div class="content-right">
	<div class="content-r-pic_w">
		<div style="margin:8px auto auto 12px;margin-top:6px">
			<span class="page_title">角色管理</span>
		</div>
	</div>
	<div class="content-text">
		<form action="${path}/role_list" method="post"> 
			<!--"square-o-top"end-->
			<div class="square-order">
				<table width="100%" border="1" cellpadding="0" cellspacing="0">
					<tr align="center"
						style="background:url(${path}/images/table_bg.gif) repeat-x;">
							<td width="20%">角色选择</td>
						<td width="40%" height="30">角色名称</td>
						<td width="40%">角色编码</td>
					
					</tr>
					<s:iterator value="#roles" var="role">
					<tr align="center" bgcolor="#FFFFFF">
					   <td height="30">
				<input type="checkbox" <s:if test="#role.select=='yes'">checked</s:if> value="<s:property value="#role.roleId"/>">
						</td>
						<td height="30">
						<s:property value="#role.name"/>
						</td>
						<td>
						<s:property value="#role.code"/>
						</td>
					</tr>
					</s:iterator>
				</table>
			</div>
		</form>
	</div>
	<div class="content-bbg"></div>
</div>
